package com.gxa.k12.common.exception;

/**
 * @Author：Win
 * @Date: 2021/7/6 15:37
 * @Description: 异常信息枚举类
 */
public enum BizCodeEnum {
    SUCCESS(20000,"SUCCESS"),
    ERROR(20001,"ERROR"),
    BUSINESS_EXCEPTION(20002,"业务异常"),
    UNKNOWN_EXCEPTION(10000, "系统未知异常,请联系系统管理员"),
    VALIDA_EXCEPTION(10001, "参数校验错误");

    private final int code;
    private final String msg;

    BizCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
